import axios from 'axios'
import * as serviceApi from "../common/service.config"
axios.defaults.withcredentials = true

export function post() {
  return new Promise((resolve, reject) => {
    axios({
      url: serviceApi.KB_API,
      method: 'post',
      data: `appMsg={"parameter":"{}","serviceCode":"${serviceApi.CONSTANT.LIST_MONITOR_AND_SENSOR}","timestamp":"","uuid":""}`
    }).then(response => {
      resolve(response);
    }).catch(error => {
      reject(error);
    });
  });
}

export default {
  post
}